<template>
  <div class="cell">
    <svg-icon v-if="icon" :name="icon" color="#666"></svg-icon>
    <span :class="{margin: icon}">{{title}}</span>
    <svg-icon
      v-if="isLink"
      :name="`arrow-${arrowDirection}`"
      color="#666"
      style="margin-left: auto;">
    </svg-icon>
  </div>
</template>

<script>
export default {
  props: {
    icon: String,
    title: {
      type: String,
      required: true
    },
    isLink: {
      type: Boolean,
      default: true
    },
    arrowDirection: {
      type: String,
      default: 'right'
    }
  }
}
</script>

<style scoped>
.cell {
  height: 88px;
  width: 100%;
  padding: 0 18px 0 25px;
  display: flex;
  align-items: center;
  font-size: 30px;
  color: #666;
  background-color: #fff;
  box-sizing: border-box;
  border-bottom: 1px solid #CCCCCC;
}
.cell:last-child {
  border: none;
}
.cell > span.margin {
  margin-left: 24px;
}
</style>
